package four;

/**
 * @author zzb
 * @since 2021-01-12
 */

//Singleton
public class Singleton {
  private static Singleton singleton;

  public Singleton() {
  }

  public static Singleton getInstance() {
    if (singleton == null) {
      singleton = new Singleton();
    }
    return singleton;
  }
}
